package com.ww.demo.core.entity.response;

import com.ww.demo.core.entity.UserInfo;

/**
 * @author liuqingwang
 * @date 2021/10/25 21:56
 */
public class LoginResult {

    private String token;
    private UserInfo userInfo;

    public static final LoginResult create(String token, UserInfo userInfo) {
        LoginResult result = new LoginResult();
        result.setToken(token);
        result.setUserInfo(userInfo);
        return result;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }


}
